package com.ict.web.controller.yzq;

import com.ict.common.core.domain.AjaxResult;
import com.ict.web.domain.ProjectSystemInfo;
import com.ict.web.service.ProjectSystemInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/sysInfo")
@Api(tags = "系统信息控制器")
public class ProjectSystemInfoController {
    @Autowired
    private ProjectSystemInfoService systemInfoService;

    @PostMapping("/saveSysInfo")
    @ApiOperation("新增系统信息")
    public AjaxResult saveSysInfo(@RequestBody ProjectSystemInfo info) {
        return systemInfoService.saveSysInfo(info);
    }

    @PostMapping("/updateSysInfo")
    @ApiOperation("修改系统信息")
    public AjaxResult updateSysInfo(@RequestBody ProjectSystemInfo info) {
        return systemInfoService.updateSysInfo(info);
    }
}
